<?php
	class UNIVERSE extends CI_Controller{
		function  __construct() {
			parent::__construct();
			$this->load->model('Laporan_model');
			$this->load->model('bird_model','BIRD');
			
			$this->load->helper(array('html','form', 'url','jq_plugin'));
			$this->load->library(array('form_validation','pagination'));
		}
		function index(){
			$this->earth();
		}
		//line ikhlas Request Bu Beth 07Mei2013
		function earth(){
			if($_POST) {
				$data['default'] = $this->BIRD->Pigeon($this->input->post('week'));
				$data['week'] = $this->input->post('week');
				$this->load->view('admin_views/universe/page_keuangan_mingguan',$data);
			}else{
				$week = $this->Laporan_model->selectWeek();
				foreach ($week as $g)
				{
					$data['id'][]	 	    = $g->id;
					$data['intid_week'][] 	= $g->intid_week;
				}
				
				$this->load->view('admin_views/universe/form_keuangan_mingguan',$data);
			}
		}
	}
?>